package com.cmc.cloud.cmclink.doc.api.document.rep;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * doc_operate_log Base VO，提供给添加、修改、详细的子 VO 使用 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 * 
 * @author codegen
 */
@Data
public class OperateLogBaseDto {

    @Schema(description = "业务类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotBlank(message = "{operatelog.businesstype.notblank}")
    @Length(max = 10, message = "{operatelog.businesstype.length}")
    private String businessType;

    @Schema(description = "业务id", requiredMode = Schema.RequiredMode.REQUIRED, example = "935")
    @NotNull(message = "{operatelog.businessid.notnull}")
    private Long businessId;

    @Schema(description = "业务号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{operatelog.businessno.notblank}")
    @Length(max = 50, message = "{operatelog.businessno.length}")
    private String businessNo;

    @Schema(description = "操作类型 一级", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotBlank(message = "{operatelog.operatetype.notblank}")
    @Length(max = 50, message = "{operatelog.operatetype.length}")
    private String operateType;

    @Schema(description = "拒绝/同意/待定")
    @Length(max = 50, message = "{operatelog.operatetypesub.length}")
    private String operateTypeSub;

    @Schema(description = "详细类型，拒绝详细类型")
    @Length(max = 50, message = "{operatelog.operatetypethird.length}")
    private String operateTypeThird;

    @Schema(description = "详细理由")
    @Length(max = 200, message = "{operatelog.operaedesc.length}")
    private String operateDesc;

    @Schema(description = "备注")
    @Length(max = 200, message = "{operatelog.remark.length}")
    private String remark;

}
